#include <stdio.h>

int main(){
	int arr[3][3] = {{1,2,3},{4,5,6},{7,8,9}};
	int brr[3][3] = {{1,4,7},{2,5,8},{3,6,9}};
	//练习：arr和brr做对应乘法运算
	//得到结果的二维数组是：
	/*
	   1  4  9
	   16 25 36
	   49 64 81
	 */
	int i = 0,j = 0;
    int crr[3][3] = {};	
	for(i = 0;i < 3;i++){
		for(j = 0;j < 3;j++){
			crr[i][j] = arr[i][j] * brr[j][i];
		}
	}
	for(i = 0;i < 3;i++){
		for(j = 0;j < 3;j++){
			printf("%d ",crr[i][j]);
		}
		printf("\n");
	}
}
